<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" >
  <title>Title</title>
</head>
<input type="datetime-local" id="dates">

<h2 id="h2"></h2>
<button onclick="f()"></button>
<body>

<script >
const arr=[2,3,4]
  const newarr=arr
newarr[0]=1
  console.log(newarr)
console.log(arr)


</script>


</body>
<style>

a{
  display: inline-block;
  border:2px solid #dddddd;
  border-radius:4px ;
  padding:5px;
  transition: 3s;
}
  a:hover{
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
  }
</style>
</html>
